﻿using System.ComponentModel;
using System; 

namespace QHW.Comp.AppEnum
{
    public class SiteEnum
    {
        /// <summary>
        /// 新闻中心原料价格分类
        /// </summary>
        public enum MaterialPrice
        {
            [Description("花生")]
            huasheng = 1,
            [Description("玉米")]
            yumi = 2,
            [Description("棉花")]
            mianhua = 3,
            [Description("蔬菜")]
            shucai = 4,
            [Description("水果")]
            shuiguo = 5,
            [Description("大米")]
            dami = 6,
            [Description("小麦")]
            xiaomai = 7,
            [Description("涤纶")]
            dilun = 8,
            [Description("PTA")]
            pta = 9,
            [Description("纱线")]
            shaxian = 10,
            [Description("聚酯切片")]
            jzqp = 11,
            [Description("钢材")]
            gangcai = 12,
            [Description("金属")]
            jinshu = 13,
            [Description("木材")]
            mucai = 14,
            [Description("涂料")]
            tuliao = 15,
            [Description("水泥")]
            shuini = 16,
            [Description("石材")]
            shicai = 17,
            [Description("橡胶")]
            xiangjiao = 18,
            [Description("塑料")]
            suliao = 19,
            [Description("油品")]
            youpin = 20,
            [Description("液化气")]
            yehuaqi = 21,
            [Description("钛白粉")]
            taibaifen = 22,
            [Description("甲醇")]
            jiachun = 23,
            [Description("纯苯")]
            chunben = 24,
            [Description("化肥")]
            huafei = 25
        }

        public static string GetMaterialTitleWord(MaterialPrice value)
        {
            switch (value)
            {
                case MaterialPrice.chunben: return "纯苯,纯苯价格"; break;
                case MaterialPrice.dami: return "大米,大米价格"; break;
                case MaterialPrice.dilun: return "涤纶,涤纶价格"; break;
                case MaterialPrice.gangcai: return "钢格板,废钢,螺纹钢,钢材,钢材价格"; break;
                case MaterialPrice.huafei: return "化肥,尿素,化肥价格"; break;
                case MaterialPrice.huasheng: return "花生,花生价格"; break;
                case MaterialPrice.jiachun: return "甲醇,甲醇价格"; break;
                case MaterialPrice.jinshu: return "有色金属,有色金属价格"; break;
                case MaterialPrice.jzqp: return "聚酯切片,聚酯切片价格"; break;
                case MaterialPrice.mianhua: return "棉花,棉花价格"; break;
                case MaterialPrice.mucai: return "杉木,原木,木板,细木工板,木材,木材价格"; break;
                case MaterialPrice.pta: return "PTA,PTA价格"; break;
                case MaterialPrice.shaxian: return "纱线,纱线价格"; break;
                case MaterialPrice.shicai: return "鹅卵石,花岗岩,大理石,石材价格"; break;
                case MaterialPrice.shucai: return "蔬菜,蔬菜价格"; break;
                case MaterialPrice.shuiguo: return "水果,水果价格"; break;
                case MaterialPrice.shuini: return "水泥,水泥价格"; break;
                case MaterialPrice.suliao: return "塑料,塑料价格"; break;
                case MaterialPrice.taibaifen: return "钛白粉,钛白粉价格"; break;
                case MaterialPrice.tuliao: return "涂料,涂料价格"; break;
                case MaterialPrice.xiangjiao: return "橡胶,橡胶价格"; break;
                case MaterialPrice.xiaomai: return "小麦,小麦价格"; break;
                case MaterialPrice.yehuaqi: return "液化气,液化气价格"; break;
                case MaterialPrice.youpin: return "柴油,汽油,原油,石油,油品价格"; break;
                case MaterialPrice.yumi: return "玉米,玉米价格"; break;
                default: return "";
            }
        
        }

        public static string GetMaterialKeyWord(MaterialPrice value) 
        {
            switch (value)
            {
                case MaterialPrice.chunben: return "纯苯"; break;
                case MaterialPrice.dami: return "大米"; break;
                case MaterialPrice.dilun: return "涤纶"; break;
                case MaterialPrice.gangcai: return "钢材"; break;
                case MaterialPrice.huafei: return "化肥"; break;
                case MaterialPrice.huasheng: return "花生"; break;
                case MaterialPrice.jiachun: return "甲醇"; break;
                case MaterialPrice.jinshu: return "金属"; break;
                case MaterialPrice.jzqp: return "聚酯切片"; break;
                case MaterialPrice.mianhua: return "棉花"; break;
                case MaterialPrice.mucai: return "木材"; break;
                case MaterialPrice.pta: return "PTA"; break;
                case MaterialPrice.shaxian: return "纱线"; break;
                case MaterialPrice.shicai: return "石材"; break;
                case MaterialPrice.shucai: return "蔬菜"; break;
                case MaterialPrice.shuiguo: return "水果"; break;
                case MaterialPrice.shuini: return "水泥"; break;
                case MaterialPrice.suliao: return "塑料"; break;
                case MaterialPrice.taibaifen: return "钛白粉"; break;
                case MaterialPrice.tuliao: return "涂料"; break;
                case MaterialPrice.xiangjiao: return "橡胶"; break;
                case MaterialPrice.xiaomai: return "小麦"; break;
                case MaterialPrice.yehuaqi: return "液化气"; break;
                case MaterialPrice.youpin: return "油品"; break;
                case MaterialPrice.yumi: return "玉米"; break;
                default: return "";
            }

        
        }

    }
}
